/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aaron.platform.view;

import org.apache.myfaces.custom.tree2.TreeNodeBase;

/**
 * 扩展的树节点
 * @author chenzhuohua
 */
public class ItscTreeNode extends TreeNodeBase {

    /** 链接地址 */
    private String url;

    /** 构造函数 */
    public ItscTreeNode(String type, String description,
            boolean isLeaf, String url) {
        super(type, description, isLeaf);
        this.url = url;
    }

    /**
     * 通过当前用户角色决定是否显示
     * @param roleName 角色名
     */
    public void setRendered(String roleName) {
        
    }
    
    /** 获取导航 */
    public String navigation() {
        return url;
    }
}
